package cn.itcast.work.pojo;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 含有时间的文章
 * DTO
 */
public class TextWhole {
    //图片的路径
    private int number;
    private int status = 0;
    //    1：推送 0:未推送
    private int put = 0;
    private String phone;
    private String title;
    private String subtitle;//摘要
    private String content;//内容

    public TextWhole() {
    }

    @Override
    public String toString() {
        return "TextWhole{" +
                "phone='" + phone + '\'' +
                ", title='" + title + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", content='" + content + '\'' +
                ", createdata=" + createdate +
                ", mid='" + mid + '\'' +
                ", cid='" + cid + '\'' +
                ", status='" + status + '\'' +
                ", number='" + number + '\'' +
                '}';
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedata(Date createdate) {
        this.createdate = createdate;
    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public TextWhole(String phone, String title, String subtitle, String content, Date createdate, String mid, String cid) {
        this.phone = phone;
        this.title = title;
        this.subtitle = subtitle;
        this.content = content;
        this.createdate = createdate;
        this.mid = mid;
        this.cid = cid;
    }

    private Date createdate;//发布时间
    private String mid;//一级分类 外键
    private String cid;//二级分类 外键
}
